:root {
  --BeforHeight: 50px;
  --BeforHeightLast: 50px;
}

.zm-tree-org {
  background: #f9fafcf5;

  .tree-org-node {
    margin: 0 10px;
  }

  .zm-draggable .tree-org > .tree-org-node {
    padding-top: 20px;
    padding-left: 150px;
  }

  .tree-org-node__content .tree-org-node__inner {
    box-shadow: none;
  }

  .tree-org-node:not(:first-child):before, .tree-org-node:not(:last-child):after {
    border-top: 2px solid #bfe2ff;
  }

  .tree-org-node__children:before, .tree-org-node:after {
    border-left: 2px solid #bfe2ff;
  }

  .tree-org > .tree-org-node:after {
    border: 0;
  }

  .tree-org-node__children .tree-org-node .tree-org-node__children {
    &:has(.group-item) {
      padding-top: 50px;

      &::before, &::after {
        height: 50px;
      }

      .tree-org-node, .tree-org-node__children {
        padding-top: 50px;

        &::before, &::after {
          height: 50px;
        }
      }
    }

    .tree-org-node .tree-org-node__children {
      &::before {
        height: var(--BeforHeight);
      }
    }

    .tree-org-node .tree-org-node__children .tree-org-node .tree-org-node__children {
      &::before {
        height: var(--BeforHeightLast);
      }
    }
  }

  .tree-org-node__expand {
    width: 26px;
    height: 26px;
    margin-left: -12px;
    margin-top: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    .el-icon-remove, .el-icon-circle-plus {
      font-size: 26px;
    }

    &:hover {
      transform: scale(1.05);
    }

    &:has(.hide-expand) {
      display: none;
    }
  }

  .tree-org-node__inner {
    &:has(.upstream) {
      .el-icon-remove, .el-icon-circle-plus {
        color: #1665d8;
      }
    }

    &:has(.midstream) {
      .el-icon-remove, .el-icon-circle-plus {
        color: #6759f1;
      }
    }

    &:has(.downstream) {
      .el-icon-remove, .el-icon-circle-plus {
        color: #00a190;
      }
    }
  }

  .collapsable .tree-org-node.collapsed .tree-org-node__content:after {
    border: none;
  }
}


// 一级产业背景

.primary-industry, .second-industry, .tertiary-industry {
  width: calc(100% + 20px);
  height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  //margin-left: -100px;
  position: absolute;
  top: 218px;
  left: 50px;
  z-index: -1;

  .industry-type {
    width: 48px;
    height: 120px;
    border-radius: 5px;
    writing-mode: vertical-rl;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    margin-right: 50px;
    position: relative;
    padding-bottom: 20px;
    img {
      width: 100px;
      position: absolute;
      left: 50%;
      margin-left: -50px;
      bottom: 0px;
      z-index: -1;
    }
  }

  .primary-industry-list {
    min-width: calc(100% - 80px);
    width: auto;
    border: solid 2px rgba(#3878FF, 0.5);
    border-radius: 5px;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
  }
}

.second-industry, .tertiary-industry {
  top: 378px;
  height: 188px;

  .industry-type {
    height: 188px;
  }

  .primary-industry-list {
    height: 100%;
  }
}

.tertiary-industry {
  top: 625px;
}

.high {
  background: #DAF3D6 !important;
  border-color: #90DA84 !important;
  color: #222222 !important;

  .item-content-box {
    color: #222222 !important;
  }
}

.higher {
  background: #E0F7FF !important;
  border-color: #56C9ED !important;
  color: #222222 !important;

  .item-content-box {
    color: #222222 !important;
  }
}

.medium {
  background: #E0EAFA !important;
  border-color: #3878FF !important;
  color: #222222 !important;

  .item-content-box {
    color: #222222 !important;
  }
}

.lower {
  background: #FFE7D6 !important;
  border-color: #FF858B !important;
  color: #222222 !important;

  .item-content-box {
    color: #222222 !important;
  }
}

.low {
  background: #FDD8DA !important;
  border-color: #FF858B !important;
  color: #222222 !important;

  .item-content-box {
    color: #222222 !important;
  }
}


